/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class AbdominalMassager {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010070036';
    }

    get categoryName() {
        return '\u8179\u90e8\u6309\u6469\u4eea';
    }

    getIntensity(params) {
        return command({
            method: 'getIntensity',
            methodId: 'pDrhTNjw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'p1vZRvTP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRemainTime(params) {
        return command({
            method: 'getRemainTime',
            methodId: 'phEqj16C',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pGoxIHIm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTargetTime(params) {
        return command({
            method: 'getTargetTime',
            methodId: 'pgh0HkaU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setIntensity(params) {
        return command({
            method: 'setIntensity',
            methodId: 'pUPQlyCl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'ppAXPjSK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3fAqM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTargetTime(params) {
        return command({
            method: 'setTargetTime',
            methodId: 'pZgunil5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default AbdominalMassager;
